s=0
for i in range (1, 1000):
    if i % 3 == 0 or i % 5 == 0:
        s=s+i
# print s
def isprime (n):
    for x in range (2, n):
        if n % x == 0:
            return False
    else:
        return True


for i in range (1, 1000):
    if isprime (i):
        pass

# print filter(isprime, range(2, 1000))

def myfilter(function, lis):
    newlist = []
    for i in lis:
        if function(i):
            newlist.append(i)
    return newlist

# print myfilter(isprime, range(2, 1000))

# def fib(n):
     # """Print a Fibonacci series up to n."""
     # a, b = 0, 1
     # while a < n:
        # print a,
        # a, b = b, a+b
# fib (1000)

def fib (n):
	if (n<2): return 1
	return fib (n-1) +fib (n-2)
    
